package com.ruoyi.crm.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 付款计划对象 pay_plan
 *
 * @author ruoyi
 * @date 2021-09-01
 */
public class PayPlan extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private String id;

    /** 付款计划编号 */
    @Excel(name = "付款计划编号")
    private String payNo;

    /** 供应商名称 */
    @Excel(name = "供应商名称")
    private String supplierName;

    /** 期次 */
    @Excel(name = "期次")
    private Long period;

    /** 计划付款日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "计划付款日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date payDate;

    /** 金额 */
    @Excel(name = "金额")
    private String account;

    /** 已付金额 */
    @Excel(name = "已付金额")
    private String hpayAc;

    /** 应付金额 */
    @Excel(name = "应付金额")
    private String spayAc;

    /** 采购负责人 */
    @Excel(name = "采购负责人")
    private String purchaseFollower;

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setPayNo(String payNo)
    {
        this.payNo = payNo;
    }

    public String getPayNo()
    {
        return payNo;
    }
    public void setSupplierName(String supplierName)
    {
        this.supplierName = supplierName;
    }

    public String getSupplierName()
    {
        return supplierName;
    }
    public void setPeriod(Long period)
    {
        this.period = period;
    }

    public Long getPeriod()
    {
        return period;
    }
    public void setPayDate(Date payDate)
    {
        this.payDate = payDate;
    }

    public Date getPayDate()
    {
        return payDate;
    }
    public void setAccount(String account)
    {
        this.account = account;
    }

    public String getAccount()
    {
        return account;
    }
    public void setHpayAc(String hpayAc)
    {
        this.hpayAc = hpayAc;
    }

    public String getHpayAc()
    {
        return hpayAc;
    }
    public void setSpayAc(String spayAc)
    {
        this.spayAc = spayAc;
    }

    public String getSpayAc()
    {
        return spayAc;
    }
    public void setPurchaseFollower(String purchaseFollower)
    {
        this.purchaseFollower = purchaseFollower;
    }

    public String getPurchaseFollower()
    {
        return purchaseFollower;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("payNo", getPayNo())
                .append("supplierName", getSupplierName())
                .append("period", getPeriod())
                .append("payDate", getPayDate())
                .append("account", getAccount())
                .append("hpayAc", getHpayAc())
                .append("spayAc", getSpayAc())
                .append("purchaseFollower", getPurchaseFollower())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}